package com.sc.nft.service;


import com.sc.nft.entity.MallMemberEquityUseRecord;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 商城会员权益 服务类
 * </p>
 *
 * @author author
 * @since 2024-03-29
 */
public interface MallMemberEquityUseRecordService {

    boolean create(long mallMemberEquityTargetId, Long userId, Long orderId);

    MallMemberEquityUseRecord getByOrderId(Long orderId);

    boolean deleteById(Long id);

    /**
     * 根据商城会员权益id和用户id获取使用记录
     *
     * @param memberId
     * @param mallMemberEquityTemplateId
     * @param userId
     * @param startTime
     * @param endTime
     * @return
     */
    List<MallMemberEquityUseRecord> getByMallMemberEquityId(Long memberId, Long mallMemberEquityTemplateId, Long userId, Date startTime, Date endTime);
}
